﻿using System;
using System.IO;

namespace HyMaterialStatistic
{
	public class DbFamilyObject
	{
		public DbFamilyObject()
		{
			this.Id = 0;
			this.Name = string.Empty;
			this.Family = string.Empty;
			this.Image = string.Empty;
			this.Image2D = string.Empty;
			this.Legend = string.Empty;
		}

		public int Id { get; set; }

		public string Name { get; set; }

		public string Family { get; set; }

		public string Image { get; set; }

		public string Image2D { get; set; }

		public string Legend { get; set; }

		public override string ToString()
		{
			return Path.GetFileNameWithoutExtension(this.Family);
		}
	}
}
